<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
  <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all" />
  <link rel="stylesheet" href="__CSS__/admin.css"  media="all">
  <link rel="stylesheet" href="__CSS__/tpcitrix.css"  media="all">
  <style type="text/css">
   #Fragmenttip{
      position:absolute;
      border:1px solid #ccc;
      background:#333;
      padding:2px;
      display:none;
      color:#fff;
    }
    dl{clear: both;margin-bottom: 10px;margin-top: 10px;height: 170px;}
  </style>
</head>
<body class="patch_body">
<div class="tplay-body-div">
    <div class="layui-tab">
      <ul class="layui-tab-title">
        <li class="layui-this"><a href="javascript:;" class="a_menu">碎片列表</a></li>
        <li><a href="{:url('admin/Fragment/patch_publish')}" class="a_menu">添加碎片</a></li>
      </ul>
    </div>
    {notempty name="fragmentList"}
    <div class="patch_pack">
        {volist name="fragmentList" id="vo" key="k"}
        <dl >
            <dd {notempty name="$vo.all"} style="float:left;padding-right:10px; " {/notempty}>
                {if condition="empty($vo.image)"}
                <a href="/public/static/admin/images/404.png" >
                  <img src="/public/static/admin/images/404.png" class="Fragmenttip" style="width: 200px;height: 150px;" >
                </a>
                {else}
                <a href="{$vo.image|geturl}" >
                  <img src="{$vo.image|geturl}" class="Fragmenttip" style="width: 200px;height: 150px;" >
                </a>
                {/if}
                <p >
                    <a href="{:url('admin/Fragment/patch_publish',['id'=>$vo.id])}" >编辑</a>
                    <em >{$vo.fragment_name}</em>
                </p>
            </dd>
            {notempty name="$vo.all"}
            {volist name="$vo.all" id="v"}
            <dd style="float:left;padding-right:10px;">
                {if condition="empty($v.image)"}
                <a href="/public\static\admin\images\404.png" >
                  <img src="/public\static\admin\images\404.png" class="Fragmenttip" style="width: 200px;height: 150px;">
                </a>
                {else}
                <a href="{$v.image|geturl}" >
                  <img src="{$v.image|geturl}" class="Fragmenttip" style="width: 200px;height: 150px;">
                </a>
                {/if}
                <p >
                    <a href="{:url('admin/Fragment/patch_publish',['id'=>$v.id])}" >编辑</a>
                    <em >{$v.fragment_name}</em>
                </p>
            </dd>
            {/volist}
            {/notempty}
        </dl>
        {/volist}
    </div>
    {else}
    <h5 style="padding: 50px;">数据走失咯！快去添加吧</h5>
    {/notempty}
    <script src="__PUBLIC__/layui/layui.js"></script>
    <script src="__PUBLIC__/jquery/jquery.min.js"></script>
</div>
</body>
</html>